
<html>
<head>
<meta charset="UTF-8">
<title>表模型库DBMS修改</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-edit.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout" scroll="no">
	<form id="ff" method="post">
		<div class="esaas-info-title">表模型库信息</div>
		<table class="esaas-info-edit-table">
			<tr>
				<td width="35%" align="right">表模型库名称：</td>
				<td><input class="easyui-textbox" type="text"
					name="projectName" data-options="required:true"
					style="width: 60%; height: 25px;" disabled></input><input type="hidden"
					name="projectId"></input></td>
			</tr>
			<tr>
				<td width="35%" align="right">表模型库当前DBMS：</td>
				<td><select class="easyui-combobox"
					id="projectDbms" name="projectDbms"
					style="width: 60%; height: 25px;"
					data-options="required:true,editable:false,valueField:'enname',textField:'cnname',data:PUB_DBMS_ID">
				</select></td>
			</tr>
		</table>
	</form>
	<div style="text-align: center; padding: 15px">
		<br><br>
		<a href="javascript:void(0)" class="easyui-linkbutton"
			onclick="submitForm()">&nbsp;保&nbsp;存&nbsp;</a>&nbsp;&nbsp;<a
			href="javascript:void(0)" class="easyui-linkbutton"
			onclick="closeForm()">&nbsp;关&nbsp;闭&nbsp;</a>
	</div>
	<script>		
		$(function() {
			var projectId = $.getUrlParam('projectId');
			$.restfulGet('../../api/project/tm/info/' + projectId,null,function(data){
					$('#ff').form('load', {
						projectId : data.rows.projectId,
						projectDbms : data.rows.projectDbms,
						projectName : data.rows.projectName
					});					
			});
		});
	
		function submitForm() {
			if (!$('#ff').form('validate'))
				return;
			var jsonData = $("#ff").serializeJson();
			$.restfulPut('../../api/project/tm/info', jsonData, function(data) {
				window.parent.reloadList();
			});
		};
		
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
